import { RouteRecordRaw } from "vue-router"

const errorRouter : Array<RouteRecordRaw> = [
  {
    path:"/error",
    name:"error",
    redirect:"/error/401",
    meta:{
      title:"没有权限",
      savedPosition:true 
    },
    children:[
      {
        path:"/error/401",
        name:"401",
        component:() => import("/@/views/error-page/401.vue"),
        meta:{
          title:"没有权限",
          savedPosition:true
        }
      },{
        path:"/error/404",
        name:"404",
        component:() => import("/@/views/error-page/404.vue"),
        meta:{
          title:"错误权限",
          savedPosition:true
        }
      }
    ]
  }
]

export default errorRouter